// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_MST_PERSON_CUSTOMER_HISTORY
// * CreateDate    : 2011/11/21 10:37:36
// * Creater       : CodeSmith
// * LastChangeDate: 2011/11/21 10:37:36
// * LastChanger   : 2011/11/21 10:37:36
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class MstPersonCustomerHistoryTable : TableInfo
    {
		public const string C_TableName = "MST_PERSON_CUSTOMER_HISTORY";
		
		public const string C_HISTORY_ID = "HISTORY_ID";
		public const string C_PERSON_ID = "PERSON_ID";
		public const string C_CUSTOMER_ID = "CUSTOMER_ID";
		public const string C_FROM_DATE = "FROM_DATE";
		public const string C_END_DATE = "END_DATE";
		public const string C_LAST_MODIFIED_DATE = "LAST_MODIFIED_DATE";
		
		public MstPersonCustomerHistoryTable()
        {
            _tableName = "MST_PERSON_CUSTOMER_HISTORY";
        }
		
		protected static MstPersonCustomerHistoryTable _current;
        public static MstPersonCustomerHistoryTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new MstPersonCustomerHistoryTable();

            _current.Add(C_HISTORY_ID, new ColumnInfo(C_HISTORY_ID,"HistoryId", true, typeof(string)));
            _current.Add(C_PERSON_ID, new ColumnInfo(C_PERSON_ID,"PersonId", false, typeof(string)));
            _current.Add(C_CUSTOMER_ID, new ColumnInfo(C_CUSTOMER_ID,"CustomerId", false, typeof(string)));
            _current.Add(C_FROM_DATE, new ColumnInfo(C_FROM_DATE,"FromDate", false, typeof(DateTime)));
            _current.Add(C_END_DATE, new ColumnInfo(C_END_DATE,"EndDate", false, typeof(DateTime)));
            _current.Add(C_LAST_MODIFIED_DATE, new ColumnInfo(C_LAST_MODIFIED_DATE,"LastModifiedDate", false, typeof(DateTime)));
			
		}
		
		public ColumnInfo HISTORY_ID
        {
            get { return this[C_HISTORY_ID]; }
        }
		
		public ColumnInfo PERSON_ID
        {
            get { return this[C_PERSON_ID]; }
        }
		
		public ColumnInfo CUSTOMER_ID
        {
            get { return this[C_CUSTOMER_ID]; }
        }
		
		public ColumnInfo FROM_DATE
        {
            get { return this[C_FROM_DATE]; }
        }
		
		public ColumnInfo END_DATE
        {
            get { return this[C_END_DATE]; }
        }
		
		public ColumnInfo LAST_MODIFIED_DATE
        {
            get { return this[C_LAST_MODIFIED_DATE]; }
        }
		
		
		
	}
}

